package com.briup.pts.domain.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 批次信息
* @TableName manager_batch
*/
@Data
@Schema(description="批次信息")
public class Batch implements Serializable {
    @Schema(description="批次编号")
    @JsonProperty("bSerialId")
    private String bSerialId;
    @Schema(description="批次描述")
    @JsonProperty("bDesc")
    private String bDesc;
    @NotBlank(message="[检疫状态,未检疫已检疫]不能为空")
    @Schema(description="检疫状态,未检疫已检疫")
    @JsonProperty("bQuarantine")
    private String bQuarantine;
    @JsonProperty("bQualified")
    @Schema(description="检疫合格状态,合格不合格")
    private String bQualified;
    @JsonProperty("bTime")
    @Schema(description="批次时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bTime;
}
